package ms.authority.controller;

import ms.authority.bean.UserParamBean;
import ms.authority.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * Project Name: ms
 * File Name: LoginController
 * Package Name: ms.authority.controller
 * Date: 2018/5/9  17:03
 * Copyright (c) 2018, tianyul All Rights Reserved.
 * 登录
 */
@RestController
@RequestMapping("/login")
public class LoginController {

    @Autowired
    private LoginService loginService;

    /**
     * 登录
     * @param userParamBean
     * @return
     */
    @PostMapping("/sign")
    public Map<String,Object> sign(@RequestBody UserParamBean userParamBean) {
        return loginService.sign(userParamBean);
    }
}
